import java.util.Scanner;

public class Test3 {
    public static void menu(){
        System.out.println("请选择您的操作");
        System.out.println("1.登录");
        System.out.println("2.注册");
        System.out.println("0.退出系统");
        Scanner scan=new Scanner(System.in);
        int choice=scan.nextInt();
        while (choice!=0){
            switch (choice){
                case 1:
                    register();break;
                case 2:
                    login();break;
                default:
                    break;
            }
            System.out.println("请输入您的操作");
            choice=scan.nextInt();
        }
        System.out.println();
    }

    public static void login() {
        System.out.println("进入注册界面..");
        System.out.println("请输入用户名");
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();
        System.out.println("您的用户名是"+str);
        System.out.println();
        System.out.println("请设置您的密码");
        String str2=scan.nextLine();
        User user=new User(str,str2);
        System.out.println("注册成功");
    }

    public static void register(){
        System.out.println("进入登录界面..");
        System.out.println("请输入您的密码");
        Scanner scan=new Scanner(System.in);
        String str=scan.nextLine();

    }
//    public boolean isTrue(String str){
//        if(str.equals()){
//
//        }
//    }
    public static void main(String[] args) {
        menu();
    }
}
